

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>validate验证框架演示</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta http-equiv="Page-Enter" content="revealTrans(duration=1, transition=2)"/><meta http-equiv="Page-Exit" content="revealTrans(duration=1, transition=2)"/>
		<link type="text/css" rel="stylesheet" href="../js/validate/css/validate.css" /> 
		<script src="../js/validate/talent-validate-all.js" language="javascript"></script><script src="./demo.js" language="javascript"></script>
		</head><body>
			<form name="form1">
				用户名<input type="text" value="2" name="n1"/>
				<br/>
				密码<input type="password" value="3" name="n2"/>
				<br/><br/>
				<input type="button" class='button' value="验证" onclick="tt.validate()"/>
			
			</form>
		</body>
		<script id="talent_script">
			new tt.RV().set(new RegExp("^[a-z]{0,5}$"),
					"只能输入a-z,且长度为0-5").add("n1");
			new tt.RV().set(new RegExp("^[A-Z]{0,5}$"),
					"只能输入A-Z,且长度为0-5").add("n2");
		</script>
</html>
